package nc.ui.cmp.applaybill.command;

import nc.ui.cmp.applaybill.ClientUI;
import nc.ui.cmp.applaybill.common.UIUtil;
import nc.ui.pub.ButtonObject;
import nc.ui.trade.bocommand.IButtonCommand;
import nc.ui.trade.controller.IControllerBase;
import nc.ui.trade.manage.BillManageUI;
import nc.ui.trade.manage.ManageEventHandler;
import nc.vo.cmp.applaybill.BillCommand;
import nc.vo.pub.AggregatedValueObject;

public class AuditBoCommand extends ManageEventHandler implements IButtonCommand {

	public AuditBoCommand(BillManageUI billUI, IControllerBase control) {
		super(billUI, control);
	}

	public void execute(ButtonObject bo) throws Exception {
		ClientUI clientUI = (ClientUI)getBillUI();
		AggregatedValueObject[] aggs = null;
		aggs = UIUtil.getUIBeans(clientUI);
		new StateHandler().handler(aggs, clientUI, BillCommand.AUDIT_STATE);
		
	}

}
